package org.smartboot.flow.core.util;

import java.util.List;

/**
 * @author qinluo
 * @date 2023-08-09 11:39:16
 * @since 1.1.3
 */
public interface BeanContext {

    default <T> T getBean(String name) {
        throw new UnsupportedOperationException();
    }

    default <T> T getBean(String name, Class<T> type) {
        throw new UnsupportedOperationException();
    }

    default <T> List<T> getBean(Class<T> type) {
        throw new UnsupportedOperationException();
    }

    default void init() {
        BeanUtils.init(this);
    }
}
